﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GtsServer.Common;
using GtsServer.DAL;
using GtsServer.Model;
using System.Data;

namespace GtsServer.Manage.Controller
{
    public class NoticeTypeController
    {
        NoticeTypeDAL dal = new NoticeTypeDAL();
        public List<NoticeType> GetList(string strWhere = "")
        {
            List<NoticeType> list = new List<NoticeType>();
            DataSet ds = dal.GetList(strWhere);
            list = IListDataSet.DataSetToIList<NoticeType>(ds, 0).ToList();
            return list;

        }
        public int Add(NoticeType models)
        {
            return dal.Add(models);
        }
        public bool Update(NoticeType model)
        {
            return dal.Update(model);
        }
        public bool Delete(int ID)
        {
            return dal.Delete(ID);
        }
    }
}
